package com.ewin.mes.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import com.xcesys.extras.core.dao.model.AbstractEntity;

@Entity
@DynamicInsert
@DynamicUpdate
@Table(name = "TS_USER")
public class ExUser extends AbstractEntity {

	private static final long serialVersionUID = 6612313064564908685L;
	private Long id;
	private String username;

	@Override
	@Id
	@Column(name = "TS_USER_ID", unique = true, nullable = false, precision = 20, scale = 0)
	public Long getId() {
		return this.id;
	}


	@Column(name = "USERNAME", unique = true, nullable = false, length = 40)
	public String getUsername() {
		return this.username;
	}

	@Override
	public void setId(Long id) {
		this.id = id;
	}

	public void setUsername(String username) {
		this.username = username;
	}

}
